package com.lancer.cloud.gateway.service;

import javax.servlet.http.HttpServletRequest;
import org.springframework.security.core.Authentication;

/**
 * 系统权限服务
 *
 * @author caijinbang
 * @date 2019-06-16 13:59
 */
public interface SysPermissionService {

    /**
     * 判断当前用户是否有权限请求改url
     * @param request
     * @param authentication
     * @return
     */
    Boolean hasPermission(HttpServletRequest request , Authentication authentication);
}
